﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SFJDService.SocketHandle
{
    public static class TypeExtends
    {
        public static int GetDictianaryKey(this Type type)
        {
            foreach (KeyValuePair<int, Type> kvp in Runtime.dictionary)
            {
                if (kvp.Value.Equals(type))
                {
                    return kvp.Key;
                }
            }
            return -32767;
        }
    }
}
